import request from '@/utils/request'
export default{
    removeById(id) {
        return request({
          url: `/eduservice/video/deleteVideo/${id}`,
          method: 'delete'
        })
      },
    
      saveVideoInfo(video) {
        return request({
          url: '/eduservice/video/saveVideo',
          method: 'post',
          data: video
        })
      },
      getVideoInfoById(id) {
        return request({
          url: `/eduservice/video/getVideoInfo/${id}`,
          method: 'get'
        })
      },
      updateVideoInfoById(video) {
        return request({
          url: `/eduservice/video/updateVideo`,
          method: 'put',
          data: video
        })
    },
    uploadVideo(file) {
        return request({
          url: `/eduservice/vod/uploadVideo`,
          method: 'post',
          data: file
        })
    },
   
}